cmake_minimum_required(VERSION 2.8)
project(test)

set(OpenCV_DIR /home/yan/opencv/build)
find_package(OpenCV 3.4.3 REQUIRED)

if(NOT WIN32)
ADD_DEFINITIONS("-std=c++0x -O3")
endif(NOT WIN32)

include_directories(src) 
FILE(GLOB_RECURSE sourcefiles "src/*.cpp")
add_executable(${PROJECT_NAME} ${sourcefiles} )
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})




